# -*- coding: utf-8 -*-
"""
author:码同学 极光
date:2024/3/17
desc: 
sample: 
"""
CITY = "上海"

def info():
    global CITY
    CITY = "北京" # 局部变量
    print(CITY)  # 北京


print(CITY)
info()
print(CITY)